﻿using System;

class IsThirdDigidSeven

        // Write an expression that checks for given integer if its third digit (right-to-left) is 7. E. g. 1732 = true.

{
    static void Main()
    {
        Console.Write("Enter a three (or more) digit number: ");
        int number = int.Parse(Console.ReadLine());
        Console.WriteLine("The third digit (from right-to-left) of {0} is 7: {1}", number, number / 100 % 10 == 7);
    }
}

